//
// Created by Administrator on 2024/6/22.
//
#include "option_config.h"

/**
 * 申请单链表结点
 * @param x
 * @return
 */
Node* _buynode(ElemType x){
    Node *s=NODE;
    assert(s!=NULL);
    //存放数据
    s->data=x;
    s->next=NULL;
    return s;
}

/**
 * 申请双向链表结点
 * @param x
 * @return
 */
DNode* _buyDNode(ElemType x){
    DNode *s=DNODE;
    assert(s!=NULL);
    s->data=x;
    s->next=s->prio=NULL;
    return s;
}